﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SYSCount.aspx.cs" Inherits="WeChat.UserInfo.SYSCount" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0">
    <script src="../bootstrap-3.3.5-dist/js/jquery-1.11.3.min.js" type="text/javascript"></script>
    <link href="../bootstrap-3.3.5-dist/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <script src="../bootstrap-3.3.5-dist/js/bootstrap.min.js" type="text/javascript"></script>
       <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="../css/weui.css" />
<title>系统资金信息汇总</title>
<style>
*{margin:0; padding:0;}
.top2{line-height:40px; background:#e1e3e9; text-align:center; margin-left:-20px}
ul,ol {list-style:none;}
section { padding-left:10px;}
section ul li{ line-height:40px; height:40px; font-size:15px; color:#7b899d; border-bottom:1px solid #f2f2f1;}
section ul li p span{float:right; margin-right:5px;}
footer {text-align: center;padding: 15px 30px 10px 30px;}
footer a{
    display: block;width: 100%;height: 35px;line-height: 35px;
    text-decoration: none;color:#fff;background-color: #ccc;
    background-image: linear-gradient(top, #ccc, #999);
    background-image: -moz-linear-gradient(top,#ccc, #999);
    background-image: -ms-linear-gradient(top,#ccc, #999);
    background-image: -o-linear-gradient(top,#ccc, #999);
    background-image: -webkit-linear-gradient(top,#ccc, #999);
    border-radius: 8px;box-shadow:#060 1px 1px;transition: 5 linear;-moz-transition: 5 linear;
}
footer a:active{ color:red;	}
</style>
<script type="text/javascript">
function check(){
    if($("#time1").val()>$("#time2").val()){
        alert("时间顺序有误");
        return;
    }
}
function unbinding(){
    var openid=getQueryString("openid");
    unbind(openid);
}
function unbind(openid){
    $.ajax({
        type:"POST",
        url:"../AjaxSets.ashx",
        data:{openid:openid,functionName:"unbind"},
        success:function(data){
            if(data == "1"){
                $('#dialog1').hide();
                $('#dialog2').show();
            }else{
            }
        },
        Error:function(errMsg){
            
        }
    });
}
function getQueryString(name) { 
    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); 
    var r = window.location.search.substr(1).match(reg); 
    if (r != null) return unescape(r[2]); return null; 
} 
</script>
</head>

<body>
<form id="form1" runat="server">
<div id="Div1" runat="server">
    <div class="weui_cells weui_cells_form">
        <div class="weui_cell">
            <div class="weui_cell_hd"><label for="" class="weui_label" style=" width:auto">开始日期</label></div>
            <div class="weui_cell_bd weui_cell_primary">
                <input class="weui_input" name="time1" type="datetime-local" value="" placeholder=""/>
            </div>
        </div>
        <div class="weui_cell">
            <div class="weui_cell_hd"><label for="" class="weui_label" style=" width:auto">结束日期</label></div>
            <div class="weui_cell_bd weui_cell_primary">
                <input class="weui_input" name="time2" type="datetime-local" value="" placeholder=""/>
            </div>
        </div>
    </div>
    <footer> <a href="#" runat="server" onserverclick="days" onclick="check()">开始查询</a></footer>
    <div><label id="searchtime" runat="server" style="color:#0175CA; padding:10px"></label></div>
   <section>
      <ul>
        <div class="top2">消费汇总</div>
        <li><p>正常消费<span><asp:Label ID="xf1" runat="server"></asp:Label></span></p></li>
        <li><p>餐费补扣<span><asp:Label ID="xf2" runat="server"></asp:Label></span></p></li>
        <li><p>因错退还<span><asp:Label ID="xf3" runat="server"></asp:Label></span></p></li>
        <div class="top2">增款汇总</div>
        <li><p>现金交费<span><asp:Label ID="zk1" runat="server"></asp:Label></span></p></li>
        <li><p>微信充值<span><asp:Label ID="zk2" runat="server"></asp:Label></span></p></li>
        <li><p>单位补贴<span><asp:Label ID="zk3" runat="server"></asp:Label></span></p></li>
        <li><p>换卡交费<span><asp:Label ID="zk4" runat="server"></asp:Label></span></p></li>
        <li><p>开户押金<span><asp:Label ID="zk5" runat="server"></asp:Label></span></p></li>
        <li><p>现金赠送<span><asp:Label ID="zk6" runat="server"></asp:Label></span></p></li>
        <li><p>单位补贴<span><asp:Label ID="zk7" runat="server"></asp:Label></span></p></li>
        <li><p>补贴充值<span><asp:Label ID="zk8" runat="server"></asp:Label></span></p></li>
        <li><p>加款机<span><asp:Label ID="zk9" runat="server"></asp:Label></span></p></li>
        <li><p>充值机<span><asp:Label ID="zk10" runat="server"></asp:Label></span></p></li>
        <li><p>补贴机<span><asp:Label ID="zk11" runat="server"></asp:Label></span></p></li>
        <div class="top2">减款汇总</div>
        <li><p>补贴扣除<span><asp:Label ID="jk1" runat="server"></asp:Label></span></p></li>
        <li><p>现金提取<span><asp:Label ID="jk2" runat="server"></asp:Label></span></p></li>
        <li><p>退还押金<span><asp:Label ID="jk3" runat="server"></asp:Label></span></p></li>
        <li><p>退还余额<span><asp:Label ID="jk4" runat="server"></asp:Label></span></p></li>
        <li><p>退款机<span><asp:Label ID="jk5" runat="server"></asp:Label></span></p></li>
        <div class="top2">总计</div>
        <li><p>减款(不含餐费补扣)<span><asp:Label ID="jk" runat="server" ForeColor="Red" ></asp:Label></span></p></li>
        <li><p>增款(不含因错退还)<span><asp:Label ID="zk" runat="server" ForeColor="Red"></asp:Label></span></p></li>
        <li><p>实际消费<span><asp:Label ID="xf" runat="server" ForeColor="Red"></asp:Label></span></p></li>
        <li><p>实际收入(增款-减款)<span><asp:Label ID="sr" runat="server" ForeColor="Red"></asp:Label></span></p></li>
      </ul>
   </section>
   <footer> <a href="#" onclick="javascript:$('#dialog1').show();">解除绑定</a></footer>
</div>
<div class="weui_dialog_confirm" id="dialog1" style="display: none;">
    <div class="weui_mask"></div>
    <div class="weui_dialog">
        <div class="weui_dialog_hd"><strong class="weui_dialog_title">提示</strong></div>
        <div class="weui_dialog_bd">解除绑定之后，您需要再次绑定您的账户才能查看相关信息，确定要解绑吗？</div>
        <div class="weui_dialog_ft">
            <a id="cl" href="javascript:$('#dialog1').hide();" class="weui_btn_dialog default">取消</a>
            <a id="ok" href="#" class="weui_btn_dialog primary" onclick="unbinding()">确定</a>
        </div>
    </div>
</div>

<div class="weui_dialog_alert" id="dialog2" style="display: none;">
    <div class="weui_mask"></div>
    <div class="weui_dialog">
        <div class="weui_dialog_hd"><strong class="weui_dialog_title">提示</strong></div>
        <div class="weui_dialog_bd">解除绑定成功！</div>
        <div class="weui_dialog_ft">
            <a id="A1" href="javascript:wx.closeWindow();" class="weui_btn_dialog primary">关闭</a>
            <%--<a id="A2" href="#" class="weui_btn_dialog primary" onclick="binding()">重新绑定</a>--%>
        </div>
    </div>
</div>
</form>
</body>
</html>